﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="FrmRegularizarDesaprobados.aspx.cs" Inherits="UI.DireccionAcademica.FrmRegularizarDesaprobados" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style3
        {
            height: 44px;
        }
        .style8
        {
            height: 21px;
        }
        .style9
        {
            height: 17px;
            width: 1141px;
        }
        .style12
        {
            width: 570px;
        }
        .style14
        {
        }
        .style15
        {
            width: 506px;
        }
        .style20
        {
            height: 17px;
            width: 65px;
        }
        .style21
        {
            width: 267px;
        }
        
        .style65
        {
            width: 108px;
        }
        .style93
        {
            height: 11px;
        }
        .style94
        {
            width: 194px;
        }
        .style95
        {
            height: 21px;
            width: 8px;
        }
        .style98
        {
            width: 180px;
        }
        .style99
        {
            width: 106px;
        }
        .style100
        {
            width: 106px;
            height: 21px;
        }
        .style101
        {
            width: 180px;
            height: 21px;
        }
        .style102
        {
            width: 194px;
            height: 21px;
        }
        .botoncito
        {
            height: 26px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <br />         

    <asp:UpdatePanel ID="panel1" runat="server">
    <Triggers>
        <asp:PostBackTrigger ControlID="gridListaDesaprobados" />
        <%--<asp:AsyncPostBackTrigger ControlID="gridListaDesaprobados" />--%>
    </Triggers>
    <ContentTemplate>
            <table class="BTabla" style="width: 68%">
                <tr>
                    <td class="style3" colspan="6">
                        <h2>
                            SUBSANACIÓN DE DESAPROBADOS</h2>
                    </td>
                </tr>
                <tr>
                    <td class="filaTabla" colspan="6">
                        Busqueda de alumno
                    </td>
                </tr>
                <tr>
                    <td class="style8">
                    </td>
                    <td class="style9" align="left">
                        Código :
                    </td>
                    <td class="style14">
                        <asp:TextBox ID="txtCodigo" runat="server" Width="113px"></asp:TextBox>
                    </td>
                    <td class="style12">
                        Nombre
                    </td>
                    <td class="style12">
                        <asp:TextBox ID="txtNombre" runat="server" Width="206px"></asp:TextBox>
                    </td>
                    <td class="style15">
                        <asp:Button ID="btnBuscar" runat="server" Height="34px" OnClick="btnBuscar_Click1"
                            Text="Buscar" Width="87px" />
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
            </table>
            &nbsp;
            <br />
            <table class="BTabla" style="width: 68%">
                <tr>
                    <td class="filaTabla" colspan="2">
                        Datos Generales de alumno
                    </td>
                </tr>
                <tr>
                    <td class="style20" align="left">
                        Código:
                    </td>
                    <td class="style21">
                        <asp:Label ID="LabelCodigo" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style20" align="left">
                        Nombre:
                    </td>
                    <td class="style21">
                        <asp:Label ID="LabelNombre" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style20" align="left">
                        Especialidad
                    </td>
                    <td class="style21">
                        <asp:Label ID="LabelEspecialidad" runat="server"></asp:Label>
                    </td>
                </tr>
            </table>
            <br />
            <asp:Label ID="LabelResultados" runat="server"></asp:Label>


            <br />
            <asp:GridView ID="gridListaDesaprobados" runat="server" Width="689px" AutoGenerateColumns="False"
                CaptionAlign="Top" 
                onselectedindexchanged="gridListaDesaprobados_SelectedIndexChanged" 
                onrowdatabound="gridListaDesaprobados_RowDataBound" AllowSorting="True">
                <Columns>
                    <asp:BoundField HeaderText="ID" DataField="ID_NOTA" />
                    <asp:BoundField HeaderText="SEMESTRE" DataField="SEMESTRE" />
                    <asp:BoundField HeaderText="CICLO" DataField="CICLO" />
                    <asp:BoundField HeaderText="ASIGNATURA" DataField="ASIGNATURA" />
                    <asp:BoundField HeaderText="NOTA" DataField="NOTA" />
                    <asp:BoundField HeaderText="CREDITAJE" DataField="CREDITAJE" />
                    <asp:BoundField DataField="CONDICION" HeaderText="CONDICION" />
                    <asp:CommandField SelectText="Subsanar" ShowSelectButton="True" />
                </Columns>
            </asp:GridView>
            <br /> 

            <br />
            PROMEDIO<asp:GridView ID="gridPromedioAlumno" runat="server" Width="407px" AutoGenerateColumns="False"
                CaptionAlign="Top" onrowdatabound="gridPromedioAlumno_RowDataBound" 
                AllowSorting="True">
                <Columns>
                    <asp:BoundField HeaderText="Ciclo" DataField="CICLOS" 
                        SortExpression="ORDENA PE" />
                    <asp:BoundField HeaderText="Creditos" DataField="CREDIT" />
                    <asp:BoundField HeaderText="Creditos Acumulados" DataField="TOTCRE" />
                    <asp:BoundField HeaderText="Puntaje Semestral" DataField="PUNTAJE" />
                    <asp:BoundField HeaderText="Puntaje Total" DataField="TOTPUN" />
                    <asp:BoundField HeaderText="Promedio Semestral" DataField="PONACT" 
                        DataFormatString="{0:N3}" />
                    <asp:BoundField HeaderText="Promedio Acumulado" DataField="PONACU" 
                        DataFormatString="{0:N3}" />
                </Columns>
            </asp:GridView>
            <br />
            <br />
            <table style="width: 880px">
                <tr>
                    <td align="center" class="style65">
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<asp:AsyncPostBackTrigger ControlID="gridListaDesaprobados" />--%>

    
    
   
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="panel1" DisplayAfter="0">
    <ProgressTemplate>
        <div style="background-color: Gray; filter:alpha(opacity=60); opacity:0.60; width: 100%; top: 0px; left: 0px; position: fixed; height: 100%;">
        </div>
          <div style="margin:auto;
              font-family:Trebuchet MS;
              filter: alpha(opacity=100);
              opacity: 1;
              font-size:small;
              vertical-align: middle;
              top: 45%;
              position: fixed;
              right: 45%;
              color: #275721;
              text-align: center;
              background-color: White;
              height: 100px; bottom: 296px;">
                <table style=" background-color: White; font-family: Sans-Serif; text-align: center; border: solid 1px #275721; color: #275721; width: inherit; height: inherit; padding: 15px;">
                <tr>
                <td style=" text-align: inherit;"><img src="../Imagenes/Gif/cargando.gif" alt="Loading"  /></td>
                <td style=" text-align: inherit;"><span style="font-family: Sans-Serif; font-size: medium; font-weight: bold; font">Cargando...</span></td>
                </tr>
                </table>
        </div>
    </ProgressTemplate>
    </asp:UpdateProgress>




    <br />

    <br />
    

       
    <asp:Panel ID="Panel2" runat="server" Width="681px">
    <table style="width: 880px" >
        <tr>
            <td align="center" class="style65" >
                &nbsp;</td>
            <td >
                <asp:TabContainer ID="taqContenedor" runat="server" ActiveTabIndex="0" 
                    Width="631px">
                    <asp:TabPanel runat="server" ID="TabPanel2" na HeaderText="Datos de Alumno">
                        <HeaderTemplate>
                            Ingreso de Nueva Nota
                        </HeaderTemplate>
                        <ContentTemplate>
                            <table class="style1" align="left">
                                <tr>
                                    <td class="style46" colspan="5">
                                        <strong>Datos Generales</strong></td>
                                </tr>
                                <tr>
                                    <td class="style46" colspan="5">
                                        <asp:Label ID="LabelIDNota" runat="server" Visible="False"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style95">
                                        </td>
                                    <td class="style100">
                                        <asp:Label ID="Label4" runat="server" Text="Código"></asp:Label>
                                    </td>
                                    <td class="style102">
                                        <asp:Label ID="LabelCodigoNota" runat="server"></asp:Label>
                                    </td>
                                    <td class="style101">
                                        </td>
                                    <td class="style8">
                                        </td>
                                </tr>
                                <tr>
                                    <td class="style95">
                                        &nbsp;</td>
                                    <td class="style99">
                                        <asp:Label ID="Label5" runat="server" Text="Nombres"></asp:Label>
                                    </td>
                                    <td class="style94">
                                        <asp:Label ID="LabelNombreNota" runat="server"></asp:Label>
                                    </td>
                                    <td class="style98">
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="style95">
                                        &nbsp;</td>
                                    <td class="style99">
                                        <asp:Label ID="Label6" runat="server" Text="Especialidad"></asp:Label>
                                    </td>
                                    <td class="style94">
                                        <asp:Label ID="LabelEspecialidadNota" runat="server"></asp:Label>
                                    </td>
                                    <td class="style98">
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="style95">
                                        &nbsp;</td>
                                    <td class="style99">
                                        Curso</td>
                                    <td class="style94">
                                        <asp:Label ID="LabelCursosNota" runat="server"></asp:Label>
                                    </td>
                                    <td class="style98">
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="style8" colspan="5">
                                        <strong>Nueva Nota</strong></td>
                                </tr>
                                <tr>
                                    <td class="style93" colspan="5">
                                        </td>
                                </tr>
                                <tr>
                                    <td class="style95">
                                        &nbsp;</td>
                                    <td class="style99">
                                        SEMESTRE</td>
                                    <td class="style94">
                                        <asp:DropDownList ID="comboSemestre" runat="server" Width="136px">
                                        </asp:DropDownList>
                                    </td>
                                    <td class="style98">
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="style95">
                                        &nbsp;</td>
                                    <td class="style99">
                                        Ciclo</td>
                                    <td class="style94">
                                        <asp:DropDownList ID="comboCiclos" runat="server">
                                        </asp:DropDownList>
                                    </td>
                                    <td class="style98">
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="style95">
                                        &nbsp;</td>
                                    <td class="style99">
                                        Nota</td>
                                    <td class="style94">

                                        <asp:TextBox ID="txtNota" runat="server" Width="55px" Height="16px"></asp:TextBox>
                                        <asp:RangeValidator ID="RangeValidator1" runat="server" 
                                            ErrorMessage="Nota no valida" MaximumValue="20" MinimumValue="0" 
                                            SetFocusOnError="True" Type="Integer" ControlToValidate="txtNota"></asp:RangeValidator>

                                    </td>
                                    <td class="style98">
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="style95">
                                        </td>
                                    <td class="style100">
                                        Observacion</td>
                                    <td class="style94" rowspan="2">
                                        <asp:TextBox ID="txtObservacion" runat="server" Height="34px" TextMode="MultiLine" 
                                            Width="447px"></asp:TextBox>
                                    </td>
                                    <td class="style101">
                                        </td>
                                    <td class="style8">
                                        </td>
                                </tr>
                                <tr>
                                    <td class="style95">
                                        &nbsp;</td>
                                    <td class="style99">
                                        &nbsp;</td>
                                    <td class="style98">
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="style95">
                                        &nbsp;</td>
                                    <td class="style99">
                                        &nbsp;</td>
                                    <td class="style94">
                                        <asp:Label ID="LabelErrorNota" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>
                                    </td>
                                    <td class="style98">
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="style95">
                                        &nbsp;</td>
                                    <td class="style99">
                                        <asp:Button ID="btnGrabar" runat="server" CssClass="botoncito" 
                                            OnClick="btnGrabar_Click" Text="Grabar" />
                                    </td>
                                    <td class="style94">
                                        <asp:Button ID="btnCancelar" runat="server" CssClass="botoncito" 
                                            OnClick="btnCancelar_Click" Text="Cancelar" />
                                    </td>
                                    <td class="style98">
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                            </table>
                        </ContentTemplate>
                    </asp:TabPanel>
                </asp:TabContainer>
            </td>
        </tr>
    </table>
    </asp:Panel>

    <asp:HiddenField ID="HiddenFiel1" runat="server" />
    <asp:ModalPopupExtender ID="mpeAgregaNota" runat="server" PopupControlID="Panel2"
        TargetControlID="HiddenFiel1" BackgroundCssClass="modalBackground">
    </asp:ModalPopupExtender>


    <br />
    <br />
    <br />

    <br />
    <br />
</asp:Content>
